package com.ruoyi.otc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.otc.domain.Legal;
import com.ruoyi.otc.mapper.LegalMapper;
import com.ruoyi.otc.service.ILegalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**

 */
@Service
@DataSource(DataSourceType.SLAVE)
public class LegalServiceImpl extends ServiceImpl<LegalMapper, Legal> implements ILegalService
{
    @Autowired
    private LegalMapper legalMapper;


    @Override
    public List<Legal> selectListByshNumber(String creditCode) {
        return legalMapper.selectList(new QueryWrapper<Legal>().eq("sh_number",creditCode));
    }
}
